package com.example.demo.model;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

@Getter
@Setter
@ToString    //@Data等同于所有的相加
public class Student {
    private int id;
    private String name;
    private String password;

    public static void main(String[] args) {
        Student student=new Student();
        student.setId(11);
        student.setName("张三");
        student.setPassword("123456");
        System.out.println(student.toString());
    }
}
